"""mysite URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from appOne import views as oneView #导入应用的view文件


from appOne import views as oneView #导入应用的view文件


urlpatterns = [
    path('admin/', admin.site.urls),
    path('demo1/', oneView.demo1),
    path('demo2/', oneView.demo2),#设置我们自己的路由规则
    path('demo3/', oneView.demo3),
    path('demo4/', oneView.demo4),
    path('demo4.do',    oneView.demo4_ajax),
    path('demo5',       oneView.demo5),
    path('demo5.do',    oneView.demo5_form),
    path('demo6',       oneView.demo6),
    path('demo6.do',    oneView.demo6_form),
]